#include <avr/io.h>
#include <util/delay.h>

#include "ewlcd.h"
#include "ardew.h"

int main() {
  uint8_t i;
  ardew_setup(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
  for (i=8; i<=13; i++) {
    confpin(i, 1);
    pinoff(i);
  }
  _delay_ms(15);
  lcd_setfunction(1, 1, 0);
  _delay_ms(15);
  lcd_setdisplay(1, 1, 1);
  _delay_ms(15);
  lcd_clear();
  _delay_ms(15);
  lcd_home();
  _delay_ms(15);
  for (i='a'; i <= 'z'; i++) {
    lcd_putc(i);
  }
  while (1) {
    pinon(13);
    _delay_ms(10);
    pinoff(13);
    sleepms(1000);
  }
}
